/**
 * 为了避免和官方 发生冲突 前缀修改未 d-
 */
// 定义字体(px)单位，小于20都为px单位字体
@for $i from 9 to 20 {
	.d-font-#{$i} {
		font-size: $i + px;
	}
}

// 定义字体(rpx)单位，大于或等于20的都为rpx单位字体
@for $i from 20 through 40 {
	.d-font-#{$i} {
		font-size: $i + rpx;
	}
}

// 定义内外边距，历遍1-80
@for $i from 0 through 80 {
	// 只要双数和能被5除尽的数
	@if $i % 2 == 0 or $i % 5 == 0 {
		// 得出：d-margin-30或者d-m-30
		.d-m-#{$i} {
			margin: $i + rpx !important;
		}

		// 得出：d-padding-30或者d-p-30
		.d-p-#{$i} {
			padding: $i + rpx !important;
		}

		@each $short, $long in l left, t top, r right, b bottom {
			// 定义外边距
			.d-m-#{$short}-#{$i} {
				margin-#{$long}: $i + rpx !important;
			}
			// 定义内边距
			.d-p-#{$short}-#{$i} {
				padding-#{$long}: $i + rpx !important;
			}
		}
	}
}

.d-flex {
	/* #ifndef APP-NVUE */
	display: flex;
	/* #endif */
	flex-direction: row;
	align-items: center;
}
.d-flex-1 {
	flex: 1;
}
.d-flex-wrap {
	flex-wrap: wrap;
}

.d-flex-nowrap {
	flex-wrap: nowrap;
}

.d-col-center {
	align-items: center;
}

.d-col-top {
	align-items: flex-start;
}

.d-col-bottom {
	align-items: flex-end;
}

.d-row-center {
	justify-content: center;
}

.d-row-left {
	justify-content: flex-start;
}

.d-row-right {
	justify-content: flex-end;
}

.d-row-between {
	justify-content: space-between;
}

.d-row-around {
	justify-content: space-around;
}

.d-text-left {
	text-align: left;
}

.d-text-center {
	text-align: center;
}

.d-text-right {
	text-align: right;
}

.d-flex-col {
	/* #ifndef APP-NVUE */
	display: flex;
	/* #endif */
	flex-direction: column;
}

.flex-center{
	display: flex;
	justify-content: center;
	align-items: center;
}
.flex-align{
	display: flex;
	align-items: center;
}
.flex-start{
	display: flex;
	justify-content: flex-start;
	align-items: center;
}
.flex-between{
	display: flex;
	align-items: center;
	justify-content: space-between;
}
image{
	will-change: transform;
}


.ellipsis-1{
	width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.flex-around{
	display: flex;
	align-items: center;
	justify-content: space-around;
}

body,
.page {
	font-family: PingFangSC-Regular, PingFang SC;
}
